package restful.struts2.sample.echo;

import restful.*;

public class EchoProtocol extends RestfulProtocolOverriden {

	public EchoProtocol() {

		namespace("http://api.echo.com/1.0");

		topic("Echo");

		resource("Echo");
		{
			GET("/echo/{message:.*}");
			require().parameter("{message}").that("is the message returned back by the server");
			example("http://api.echo.com/1.0/echo/aMessage.json");
			example("http://api.echo.com/1.0/echo/anotherMessage.xml");
		}
	}

}
